#ifndef __BIN_OLED_12864_H__
#define __BIN_OLED_12864_H__



//OLED
#define OLED_DC	    PTE25_OUT//PTC19_OUT  //C19
#define OLED_RST	PTE28_OUT//PTC18_OUT  //C18
#define OLED_SDA	PTA16_OUT//PTC17_OUT  //C17
#define OLED_SCL	PTC5_OUT//PTC16_OUT  //C16

#define OLED_DC_PIN		PTE25
#define OLED_RST_PIN	PTE28
#define OLED_SDA_PIN	PTA16
#define OLED_SCL_PIN	PTC5
#define OLED_BL_PIN		PTE25



extern void OLED_init(void);
extern void OLED_CLS(void);
extern void OLED_P6x8Str(unsigned char x,unsigned char y,unsigned char ch[]);
extern void OLED_P8x16Str(unsigned char x,unsigned char y,unsigned char ch[]);
extern void OLED_P14x16Str(unsigned char x,unsigned char y,unsigned char ch[]);
extern void OLED_Print(unsigned char x, unsigned char y, unsigned char ch[]);
extern void OLED_PutPixel(unsigned char x,unsigned char y);
extern void OLED_Rectangle(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2,unsigned char gif);
extern void Draw_LibLogo(void);
extern void Draw_BMP(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char * bmp); 

extern void OLED_Set_Pos(unsigned char x, unsigned char y);
extern void OLED_WrDat(unsigned char data);
extern void OLED_WrCmd(unsigned char cmd);



//添加
void OLED_PrintStr0608(unsigned char x, unsigned char y, unsigned char dir, unsigned char ch[]);


extern void OLED_Printf(uint8_t x, uint8_t y, char *str, ...);
extern void dis_bmp(uint16 high, uint16 width, uint8 *p, uint8 value);


#endif

